package com.flyqiu.flow.core.impl.ru;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.flyqiu.flow.api.context.FlyQiuFlowGlobalContext;
import com.flyqiu.flow.api.service.FlowRuUserTaskService;
import com.flyqiu.flow.mapper.RuUserTaskInstMapper;
import com.flyqiu.flow.model.entity.ru.ProcRuUserTask;

public class FlowRuUserTaskServiceImpl extends ServiceImpl<RuUserTaskInstMapper, ProcRuUserTask> implements FlowRuUserTaskService {
    public FlowRuUserTaskServiceImpl(FlyQiuFlowGlobalContext globalContext) {
        baseMapper = globalContext.getBeanManage().getMapper(RuUserTaskInstMapper.class);
    }

    @Override
    public ProcRuUserTask getByActId(String actId) {
        LambdaQueryWrapper<ProcRuUserTask> lambdaQueryWrapper=new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(ProcRuUserTask::getActId,actId);
        return getOne(lambdaQueryWrapper);
    }
}
